﻿using System;
using System.Collections.Generic;

namespace Cartoons.Books.Model
{
    public interface IOptionsProvider
    {
        int Key { get; }
        string Text { get; }
    }

    public class OptionEqualityComperer : IEqualityComparer<IOptionsProvider>
    {
        #region IEqualityComparer<IOptionsProvider> Members

        public bool Equals(IOptionsProvider x, IOptionsProvider y)
        {
            return x.Key == y.Key;
        }

        public int GetHashCode(IOptionsProvider obj)
        {
            return 1243432;
        }

        #endregion
    }

}
